<template>
  <div>
    <a-layout class="bg">
      <div style="padding-top: 200px">
        <div class="content">
          <div style="width: 600px; font-size: 40px; color: white">
            <i>{{ introduce1 }}</i>
          </div>
        </div>
        <a-divider></a-divider>
        <div
          style="
            padding-left: 1150px;
            width: 600px;
            font-size: 18px;
            color: #666666;
          "
        >
          {{ introduce2 }}
        </div>
      </div>
      <div style="padding-top: 200px; padding-left: 200px">
        <div style="width: 400px; font-size: 18px; color: #666666">
          {{ getStarted }}
        </div>
        <div style="padding-top: 30px">
          <a-button type="primary" shape="round" @click="goto"
            >GetStarted
          </a-button>
        </div>
      </div>
    </a-layout>
  </div>
</template>
<script setup lang="ts">
import { ref } from "vue";
import { useRouter } from "vue-router";

const router = useRouter();
const introduce1 = ref("A New Way To Improve");
const introduce2 = ref(
  "The COJ website helps you improve your algorithmic skills and personal abilities."
);
const getStarted = ref(
  "Are you ready to challenge yourself? Click to start practicing problems now!"
);

const goto = () => {
  router.push("/questions");
};
</script>
<style scoped>
.content {
  padding-left: 1200px;
}

.bg {
  display: flex;
  flex-direction: column;
  background-image: url("/src/assets/senxiu.jpg");
  background-size: 100% 100%;
  background-attachment: fixed;

  height: 100vh; /* 视口高度 */
  width: 100vw; /* 视口宽度 */
}
</style>
